From 8b514f73dbc3335b0fff15863f8d219cdd4c4589 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Tue, 3 Aug 2004 04:52:19 +0000 Subject: [PATCH] Update user talk on diff-to-current and if the page doesn't exist. Fixes for: * [ 711599 ] Viewing current diff of user talk doesn't clear newtalk * [ 988485 ] Deleted talk page can't clear newtalk --- includes/Article.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/includes/Article.php b/includes/Article.php index c35e3ed056..f14d904f4e 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -655,6 +655,10 @@ class Article { $de = new DifferenceEngine( intval($oldid), intval($diff) ); $de->showDiffPage(); wfProfileOut( $fname ); + if( $diff == 0 ) { + # Run view updates for current revision only + $this->viewUpdates(); + } return; } @@ -1638,10 +1642,10 @@ class Article { $u = new SiteStatsUpdate( 1, 0, 0 ); array_push( $wgDeferredUpdateList, $u ); } - $u = new UserTalkUpdate( 0, $this->mTitle->getNamespace(), - $this->mTitle->getDBkey() ); - array_push( $wgDeferredUpdateList, $u ); } + $u = new UserTalkUpdate( 0, $this->mTitle->getNamespace(), + $this->mTitle->getDBkey() ); + array_push( $wgDeferredUpdateList, $u ); } # Do standard deferred updates after page edit. -- 2.20.1